using System;
using System.Collections.Generic;
using System.Text;
using GameFramework;

namespace Projet_X0
{
    public class Weapons : State
    {
        private List<Weapon> weapons;
        int current = 0;

        public Weapons()
            : base((int)StatesID.Weapons)
        {
            weapons = new List<Weapon>();
        }

        public void AddWeapon(Weapon weapon)
        {
            weapons.Add(weapon);
        }

        public void NextWeapon()
        {
            current++;
            if (current == weapons.Count)
                current = 0;
        }

        public override void Terminate()
        {
            weapons.Clear();
        }

        public Weapon GetWeapon()
        {
            return weapons[current];
        }
    }
}
